package com.mygdx.game;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.scenes.scene2d.Stage;

/**
 * Created by 80002023 on 2016/7/26.
 */
public class StageAndActorDemo extends ApplicationAdapter {
    private Stage mStage;

    @Override
    public void create() {
        mStage = new Stage();
        mStage.addActor(new StageAndActorToPlayer());
    }

    @Override
    public void render() {
        Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
        mStage.act(Gdx.graphics.getDeltaTime());
        mStage.draw();
    }

    @Override
    public void dispose() {
        mStage.dispose();
    }
}
